package net.towee.client.event.core;

import net.towee.model.account.Board;

import com.google.gwt.event.shared.GwtEvent;

public class BoardRenamedEvent extends GwtEvent<BoardRenamedHandler> {
	public static Type<BoardRenamedHandler> TYPE = new Type<BoardRenamedHandler>();
	private final Board board;
	
	public BoardRenamedEvent(Board board) {
		this.board = board;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<BoardRenamedHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(BoardRenamedHandler handler) {
		handler.onBoardRenamed(board);
	}

}
